/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.worlds;

import org.jbox2d.common.Vec2D;


public class WorldsJointDef {
    public static int WELD = 0;
    public static int HINGE = 1;
    public static int OLDWELD = 2;
    public static int ROPE = 3;
    public int type;
    public int part1;
    public int part2;
    public Vec2D localAnchor1;
    public Vec2D localAnchor2;
    public boolean visible;
    public float friction;
    public float torque;
    public float speed;
    @Override
    public boolean equals(Object obj)
    {
        if(obj instanceof WorldsJointDef)
        {
            WorldsJointDef def = (WorldsJointDef) obj;
            return def.type == type && def.part1 == part1 && def.part2 == part2 && def.localAnchor1.equals(localAnchor1) && def.visible == visible;
        }
        return false;
    }

}
